package no.ntnu.fp.gui.listeners;

import no.ntnu.fp.gui.events.MeetingRoomsRequestedEvent;
import no.ntnu.fp.services.MeetingRoomService;

public class MeetingRoomsRequestedListener implements 
									GuiListener<MeetingRoomsRequestedEvent> {
	private final MeetingRoomService meetingRoomService;
	
	public MeetingRoomsRequestedListener(MeetingRoomService meetingRoomService) {
		this.meetingRoomService = meetingRoomService;
	}

	@Override
	public void handleEvent(MeetingRoomsRequestedEvent evt) {
		meetingRoomService.fetchMeetingRooms();
	}

	@Override
	public boolean isLongRunningListener() {
		return false;
	}
}
